package com.zxh.zhenxihuan.mapper;

import com.zxh.zhenxihuan.entity.Merchants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author:geQiang
 * @version:1.0
 * @date:2019/8/1
 * @description:com.zxh.zhenxihuan.mapper
 */
@Mapper
public interface MerchantsMapper {
    List<Merchants> findMerchants();

    Integer addMerchants(Merchants merchants);


    @Update("update merchants set pwd =#{pwd} where id=#{id} ")
    Long updateUserPass( @Param("id") Long id,
                         @Param("pwd") String pwd);
}
